﻿while(1)
{
    .\UartSwitch.exe COM24 0 0; 
    Start-Sleep -Milliseconds 100; 
    .\UartSwitch.exe COM24 0 1; 
    Start-Sleep -Milliseconds 100; 
}